﻿<%@ Page Title="RegistroRepasse" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="RegistroRepasse.aspx.cs" Inherits="DaCredito.RegistroRepasse"  %>

    
<%@ Register Src="Controles/CampoData.ascx" TagName="CampoData" TagPrefix="uc" %>
<%@ Register Src="Controles/CampoCnpj.ascx" TagName="CampoCnpj" TagPrefix="uc" %>
<%@ Register Src="Controles/CampoEmail.ascx" TagName="CampoEmail" TagPrefix="uc" %>
<%@ Register Src="Controles/MessagePanel.ascx" TagName="MessagePanel" TagPrefix="uc" %>
 
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<uc:MessagePanel ID="pnMessagePanel" runat="server" />
    <h2>
        Registro de Repasse
    </h2>
    <br />
      <fieldset class="register">
           <legend>Filtros</legend>
           <asp:Label ID="Label_DtVencimento" runat="server">Período de vencimento: </asp:Label> 
           <uc:campodata ID="Field_DtVencimentoInicial" runat="server"  
               CssClass="textEntry" value="01/01/2010"></uc:campodata> a 
           <uc:campodata ID="Field_DtVencimentoFinal" runat="server"  CssClass="textEntry"></uc:campodata>
           <br />
           <asp:Label ID="Label_DtRecebimento" runat="server">Período de recebimento: </asp:Label> 
           <uc:campodata ID="Field_DtRecebimentoInicial" runat="server"  CssClass="textEntry"></uc:campodata> a 
           <uc:campodata ID="Field_DtRecebimentoFinal" runat="server"  CssClass="textEntry"></uc:campodata>
            <asp:Label ID="ClienteLabel" runat="server" AssociatedControlID="Field_Cliente">Cliente:</asp:Label>
                <asp:DropDownList ID="Field_Cliente" runat="server" CssClass="textEntry">
                </asp:DropDownList>
       </fieldset> 
  
    <br />
      
    <asp:Button ID="ButtonEmitir" runat="server" style="float: right;" 
        Text="Emitir" Width="83px" onclick="ButtonEmitir_Click" />
    
    
    <br />
   <div class="accountInfo" id="DivLista" runat="server" style="width:100%">
 
       <asp:GridView ID="GridViewLista" runat="server" AutoGenerateColumns="False" 
           Width="100%" DataKeyNames="IdLancamento">
           <Columns>
               <asp:BoundField DataField="IdLancamento" HeaderText="Id Lancamento" 
                   Visible="False" />
               <asp:TemplateField HeaderText="Selecionar">
                   <EditItemTemplate>
                       <asp:CheckBox ID="CheckBox1" runat="server" 
                           Checked='<%# Bind("ChSelecionar") %>' />
                   </EditItemTemplate>
                   <ItemTemplate>
                       <asp:CheckBox ID="CheckBox1" runat="server" 
                           Checked="false" Enabled="true" />
                   </ItemTemplate>
                   <HeaderStyle HorizontalAlign="Center" />
                   <ItemStyle HorizontalAlign="Center" />
               </asp:TemplateField>
               <asp:BoundField DataField="NuTitulo" HeaderText="Nu. Documento" >
                 <HeaderStyle HorizontalAlign="Right" />
                   <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
               <asp:BoundField DataField="NuNossoNumero" HeaderText="Nu. nosso número" >
                 <HeaderStyle HorizontalAlign="Right" />
                   <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
               <asp:BoundField DataField="DtVencimento" HeaderText="Dt. Vencimento" >
                 <HeaderStyle HorizontalAlign="Center" />
                   <ItemStyle HorizontalAlign="Center" />
               </asp:BoundField>
               <asp:BoundField DataField="VlLancamento" HeaderText="Vl. Recebimento" >
                 <HeaderStyle HorizontalAlign="Right" />
                   <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
               <asp:BoundField DataField="DtLancamento" HeaderText="Dt. Recebimento" >
                 <HeaderStyle HorizontalAlign="Center" />
                   <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
           </Columns>
       </asp:GridView>
 
   </div>
    <span class="failureNotification">
        <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
    </span>
    <asp:ValidationSummary ID="CadastrarClienteValidationSummary" runat="server" CssClass="failureNotification"
        ValidationGroup="CadastrarClienteValidationGroup" />
    
        <p class="submitButton">
            <asp:Button ID="EfetuarRepasseButton" runat="server" CommandName="MoveNext" Text="Efetuar repasse"
                ValidationGroup="EfetuarRepasseValidationGroup" Style="width: 105px" 
                OnClick="EfetuarRepasseButton_Click" />
        </p>
    
</asp:Content>
